﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DSClient
{
    public partial class frmConnect : Form
    {
        CConnectionInfo cinfo;

        public frmConnect(CConnectionInfo connectionInfo)
        {
            InitializeComponent();

            cinfo = connectionInfo;
        }

        private void cmdCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void cmdConnect_Click(object sender, EventArgs e)
        {
            cinfo.address = txtAddress.Text;
            cinfo.username = txtUsername.Text;
            cinfo.password = txtPassword.Text;

            this.Close();
        }
    }
}
